@slider-prefix-cls: ~"@{css-prefix}slider";

.@{slider-prefix-cls} {
    line-height: normal;
    &-wrap{
        width: 100%;
        height: @slider-height;
        margin: @slider-margin;
        background: rgba(217, 217, 217, 0.5);
        vertical-align: middle;
        position: relative;
        cursor: pointer;
        &:before, &:after {
            display: block;
            position: absolute;
            width: 5px;
            height: 100%;
            content: "";
            z-index: 0;
        }
        &:before {
            left: -5px;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            background-color:@primary-color;
        }
        &:after {
            right: -5px;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            background-color: rgba(217, 217, 217, 0.5);
            top: 0;
            z-index: -10;
        }
    }

    &-button-wrap{
        .square(@slider-button-wrap-size);
        text-align: center;
        background-color: transparent;
        position: absolute;
        top: @slider-button-wrap-offset;
        transform: translateX(-50%);

        .@{tooltip-prefix-cls} {
            display: block;
            user-select: none;
        }
    }

    &-button{
        width: 18px;
        height: 18px;
        border: 2px solid @slider-color;
        border-radius: 50%;
        background-color: @color-functional-white; // 取公共变量
        transition: all @transition-time linear;
        outline: 0;

        &:focus,
        &:hover,
        &-dragging
        {
            border-color: @primary-color;
            transform: scale(1.5);
        }

        &:hover{
            cursor: grab;
        }
        &-dragging,
        &-dragging:hover
        {
            cursor: grabbing;
        }
    }

    &-bar{
        height: @slider-height;
        background: @slider-color;
        position: absolute;
    }

    &-stop{
        position: absolute;
        .square(@slider-height);
        border-radius: 50%;
        transform: translateX(-50%);
        &:after {
          position: absolute;
          top:10px;
          left: 5px;
          content: '';
          height: 10px;
          width: 1px;
          background-color: @slider-disabled-color;
        }
    }

    &-marks{
        top: 0;
        left: 12px;
        width: 18px;
        height: 100%;

        &-item{
            position: absolute;
            transform: translateX(-50%);
            font-size: @font-size-base;
            color: @subsidiary-color;
            margin-top: 20px;
        }
    }
}

.@{slider-prefix-cls}-disabled{
    cursor: @cursor-disabled;

    .@{slider-prefix-cls}-wrap{
        cursor: @cursor-disabled;
        &:before {
            background-color: @slider-disabled-bar-color;
        }
    }
    .@{slider-prefix-cls}-bar{
        background-color: @slider-disabled-bar-color;
    }

    .@{slider-prefix-cls}-button{
        border-color: @slider-disabled-color;

        &:hover,
        &-dragging
        {
            border-color: @slider-disabled-color;
        }
        &:hover{
            cursor: @cursor-disabled;
        }
        &-dragging,
        &-dragging:hover
        {
            cursor: @cursor-disabled;
        }
    }
}

.@{slider-prefix-cls}-input{
    .@{slider-prefix-cls}-wrap{
        width: auto;
        margin-right: 100px;
    }

    .@{input-number-prefix-cls}{
        float: right;
        margin-top: -14px;
    }
}

.@{slider-prefix-cls}-range {
    .@{slider-prefix-cls}-wrap {
        &:before {
            background: rgba(217, 217, 217, 0.5);
        }
    }
}

.@{slider-prefix-cls}-range, .@{slider-prefix-cls}-disabled.@{slider-prefix-cls}-range {
    .@{slider-prefix-cls}-wrap {
        &:before {
            background: rgba(217, 217, 217, 0.5);
        }
    }
}